projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
948b8bb
)
net: write enetaddr down to hardware on env_callback
author
Marek Vasut
<
[email protected]
>
Sat, 12 Nov 2016 15:28:40 +0000
(16:28 +0100)
committer
Tom Rini
<
[email protected]
>
Sun, 13 Nov 2016 20:54:38 +0000
(15:54 -0500)
If mac-address is changed using "setenv ethaddr ...." command the new
mac-adress also must be written into the responsible ethernet driver.
This fixes the legacy ethernet handling.
Signed-off-by: Marek Vasut <
[email protected]
>
Cc: Hannes Schmelzer <
[email protected]
>
Cc: Joe Hershberger <
[email protected]
>
Cc: Tom Rini <
[email protected]
>
Reviewed-by: Hannes Schmelzer <
[email protected]
>
net/eth_legacy.c
patch
|
blob
|
history
diff --git
a/net/eth_legacy.c
b/net/eth_legacy.c
index d6d7ceeafdd73b02ca1133f4742fe592304d7125..1354f49ec0aea757e5a1bae94744024d4302d96c 100644
(file)
--- a/
net/eth_legacy.c
+++ b/
net/eth_legacy.c
@@
-118,6
+118,7
@@
static int on_ethaddr(const char *name, const char *value, enum env_op op,
case env_op_create:
case env_op_overwrite:
eth_parse_enetaddr(value, dev->enetaddr);
+ eth_write_hwaddr(dev, "eth", dev->index);
break;
case env_op_delete:
memset(dev->enetaddr, 0, 6);